Repository navigation
feat(sidebar): 统一资源管理入口并支持快捷入口开关 - #768
Merged
Merged
Conversation
ccl688
pushed a commit
to ccl688/LiveAgent
that referenced
this pull request
Sep 11, 2026
冲突解决:\n- agent-ui ChatHistorySidebar.tsx / ChatHistorySidebarTypes.ts:以上游重写(会话树、资源入口统一、会话操作菜单 Stack-Cairn#768 Stack-Cairn#770 Stack-Cairn#783)为基底,叠加本地 workflow 可选入口(SidebarExtraEntryContext + onOpenWorkflow/workflowActive),两侧改动均保留\n- agent-gui TaskDetail.tsx:上游 Stack-Cairn#766 从 ConfirmDialogOptions 移除 tone,删除 3 处残留 tone 引用\n\n合并后校验:typecheck:ui、agent-gateway/web tsc(noEmit)、agent-gui tsc(noEmit)均通过
zjt-dev
added a commit
to zjt-dev/LiveAgent
that referenced
this pull request
Sep 17, 2026
合并 main(12 个提交,含 Stack-Cairn#768 资源管理入口、Stack-Cairn#770 工作空间会话树、 Stack-Cairn#783 会话操作菜单、Stack-Cairn#792/Stack-Cairn#796 provider 修复、Stack-Cairn#800 长会话渲染性能、 Stack-Cairn#801 进程回收、Stack-Cairn#802/Stack-Cairn#804 修复)。 冲突 3 处,均手工解决: 1. crates/agent-gui/src-tauri/src/commands/workspace/fs.rs spawn_workspace_open_command(Windows 分支):保留本分支的 shell API reveal(explorer_target 去 \\?\ 前缀 + reveal_item_in_dir)回退链, 同时改用 main 引入的 spawn_and_reap 收尸,两边意图都保留。 2. crates/agent-ui/src/components/chat/ChatHistorySidebar.tsx 设置按钮:保留本分支的 min-w-0(修 flex 溢出),采纳 main 的显式 onClick={() => onOpenSettings()}。两边 onOpenSettings 签名均为 () => void。 3. crates/agent-ui/src/lib/settings/sync.ts 采纳 main 新增的 sidebarShortcuts 跨端同步字段;本分支的本地字段 (gitCommitMessagePrompt / themePresetId / backgroundImage / backgroundOpacity)保持。顺带修正本分支一条放错位置的注释——它描述的是 本地字段,却插在会同步的 composerContextDisplay 上方,已归位到本地字段块。 自动合并但需注意的两处: - git.rs:本分支改调用方 open_system_file_location,main 改被调用方 spawn_system_file_manager,互不重叠,结果并存。 - managed_process.rs / process.rs:结果等同于 main 版本。 验证:agent-ui / agent-gui / agent-gateway-web 三包 tsc --noEmit 全通过; biome 全通过;agent-gui 前端 3167/3167、webui 725/725、脚本测试 12/12、 UI 边界检查通过。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue
Closes #767
Summary
资源入口原先分散在侧栏与设置中,侧栏也无法按使用习惯隐藏入口。现在「设置 → 资源与自动化」集中管理 Skills、MCP、定时任务、记忆与 Hooks,并在系统设置中提供四个跨端同步的快捷入口开关。
Change scope
docs/features/skills-and-mcp.md。Screenshots / preview
系统设置中的四个快捷入口开关,以及统一后的资源分组:
首页打开定时任务后的运行截图:左侧导航保留,右侧显示完整管理页,顶部留白缩小。工作空间和最近会话已收起,截图不包含个人数据。
Verification
运行验证:Web 关闭记忆入口后,原生 Desktop 持久化状态同步变为关闭;桌面重启并重新发布设置后,Web 刷新仍保持关闭。检查后已恢复原先全部显示的状态。
侧栏同步修复:设置归一化、存储及 Web 同步错误处理共 101 项测试通过,覆盖四个开关的双向更新、无回传循环及旧版本兼容;共享 UI 类型检查、改动文件 Biome 与 diff 检查通过。
pnpm --filter liveagent build、pnpm --filter @liveagent/gateway-webui build:通过。pnpm --filter liveagent test:frontend:3039 项通过。pnpm --filter @liveagent/gateway-webui test:718 项通过。pnpm --filter liveagent test:release:9 项通过。共享 UI、GUI、WebUI 的 lint,
pnpm typecheck:ui、pnpm check:ui-boundaries、git diff --check:通过。已有非阻塞 lint 提示与构建体积提示保留。浏览器和原生 macOS 开发窗口人工检查:四类入口切换、开关保存与刷新、设置页复用、窄屏布局和顶部间距。
已 rebase 最新
origin/main,保留上游搜索导航与快捷键变更。Pre-submit checklist